package mm.chenchen.utils;

import java.net.InetAddress;

public class NetUtils {

    public static boolean Connectable(String host) {
        try {
            InetAddress ia = InetAddress.getByName(host);
            if (!ia.isReachable(2000)) {
                return true;
            } else {
                return false;
            }
        } catch (Exception e) {
            e.printStackTrace();
            return false;
        }
    }
}
